package com.hnust.wswx.moblieStuBack.dao;

import com.hnust.wswx.moblieStuBack.domain.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface StudentDao {

    //根据学生账号 查找学生密码
    @Select("select * from student where account=#{account} and password=#{password}")
    @ResultType(Student.class)
    public Student getPasswordByAccount(String account,String password);
}
